package cn.com.huzo.model.entities.oa;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 名片夹实体类
 *
 * @author 吴旭
 */
public class BusinessCardEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 1063852935281543260L;
    private String BusinessCardId;         // 名片标识
    private Long UserId;                   // 用户区分标识
    private String CardName;               // 名片所有者名字
    private String CompanyName;            // 单位名称（包括外文名称)
    private String Job;                    // 职务
    private String CompanyAddress;         // 职务
    private String Tel;
    private String Fax;
    private String Mobil;
    private String Email;
    private String Http;
    private String Description;            // 备注

    public String getBusinessCardId() {
        return BusinessCardId;
    }

    public void setBusinessCardId(String BusinessCardId) {
        this.BusinessCardId = BusinessCardId;
    }

    public Long getUserId() {
        return UserId;
    }

    public void setUserId(Long UserId) {
        this.UserId = UserId;
    }

    public String getCardName() {
        return CardName;
    }

    public void setCardName(String CardName) {
        this.CardName = CardName;
    }

    public String getCompanyName() {
        return CompanyName;
    }

    public void setCompanyName(String CompanyName) {
        this.CompanyName = CompanyName;
    }

    public String getJob() {
        return Job;
    }

    public void setJob(String Job) {
        this.Job = Job;
    }

    public String getCompanyAddress() {
        return CompanyAddress;
    }

    public void setCompanyAddress(String CompanyAddress) {
        this.CompanyAddress = CompanyAddress;
    }

    public String getTel() {
        return Tel;
    }

    public void setTel(String Tel) {
        this.Tel = Tel;
    }

    public String getFax() {
        return Fax;
    }

    public void setFax(String Fax) {
        this.Fax = Fax;
    }

    public String getMobil() {
        return Mobil;
    }

    public void setMobil(String Mobil) {
        this.Mobil = Mobil;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String Email) {
        this.Email = Email;
    }

    public String getHttp() {
        return Http;
    }

    public void setHttp(String Http) {
        this.Http = Http;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof BusinessCardEntity)) {
            return false;
        }

        final BusinessCardEntity that = (BusinessCardEntity) o;

        return new EqualsBuilder()
                .append(this.getBusinessCardId(), that.getBusinessCardId())
                .isEquals();
    }

    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getBusinessCardId().hashCode();
        return result;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
